package com.king.factory.simple;

public class CarFactory {

    public Car getCar(String car){
        if (car.equals("WuLing")){
            return new WuLing();
        }else if (car.equals("benchi")){
            return new BenCi();
        }else {
            return null;
        }
    }
}
